package com.bjpowernode.p2p.service.loan;
import com.bjpowernode.p2p.entity.BidInfo;
import com.bjpowernode.p2p.entity.LoanInfo;

import java.util.List;

public interface LoanInfoService {

    /**
     * 按照产品ID返回该产品
     * @param id
     * @return
     */
    LoanInfo queryById(int id);

    /**
     * 按照产品ID返回该产品投资信息
     * @param id
     * @return
     */
     List<BidInfo> queryByUser(int loanId);

}
